﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FasterFood
{
    public partial class Form1 : Form
    {
        public static UserControl[] foodPages = new UserControl[10];
        public static List<cartItem> theCart = new List<cartItem>();

        public Form1()
        {
            InitializeComponent();

            // Create title page and add to array
            foodPages[0] = new TitlePage();
            foodPages[0].Visible = true;
            //foodPages[0].BringToFront();
            this.Controls.Add(foodPages[0]);

            // Create main menu page and add to array
            foodPages[1] = new MainMenu();
            foodPages[1].Visible = false;
            this.Controls.Add(foodPages[1]);

            // Create meals menu page and add to array
            foodPages[2] = new MealsMenu();
            foodPages[2].Visible = false;
            this.Controls.Add(foodPages[2]);

            // Create dollar menu page and add to array
            foodPages[3] = new DollarPage();
            foodPages[3].Visible = false;
            this.Controls.Add(foodPages[3]);

            // Create full menu page and add to array
            foodPages[4] = new FullMenuPage();
            foodPages[4].Visible = false;
            this.Controls.Add(foodPages[4]);

            // Create sides and drinks page and add to array
            foodPages[5] = new SidesPage();
            foodPages[5].Visible = false;
            this.Controls.Add(foodPages[5]);

            // Create review order page and add to array
            foodPages[6] = new ReviewOrder();
            foodPages[6].Visible = false;
            this.Controls.Add(foodPages[6]);

            // Create payment page and add to array
            foodPages[7] = new PayPage();
            foodPages[7].Visible = false;
            this.Controls.Add(foodPages[7]);

            // Create finish page and add to array
            foodPages[8] = new FinishPage();
            foodPages[8].Visible = false;
            this.Controls.Add(foodPages[8]);

            // Create item page and add to array
            foodPages[9] = new ItemAddedPage();
            foodPages[9].Visible = false;
            this.Controls.Add(foodPages[9]);
        }
    }

    public class cartItem
    {
        private Double price = 0;
        private String title = "";
        private String imageLoc = "";

        public cartItem(String title, Double price, String imageLoc){
            this.price = price;
            this.title = title;
            this.imageLoc = imageLoc;
        }       

        public double getPrice() { return price; }

        public String Price() { return title; }

        public String getImageLoc() { return imageLoc; }
    }
}
